package me.luochenyxh.base.base

import android.view.LayoutInflater
import android.view.View
import androidx.databinding.ViewDataBinding
import me.hgj.jetpackmvvm.ext.inflateBindingWithGeneric
import me.hgj.jetpackmvvm.ext.inflateBindingWithGeneric2
import java.lang.reflect.ParameterizedType

/**
 * 有时没必要必须绑定一个ViewModule
 * */
abstract class BaseDataBindingActivity<VDB : ViewDataBinding> : YBaseActivity() {

    lateinit var mBinding: VDB

    override fun onCreated() {

    }

    override fun getContentView(): View {
//        initDataBinding()
        mBinding=inflateBindingWithGeneric2(layoutInflater)
        return mBinding.root
    }


}